# !/usr/bin/env python
# -*-coding:utf-8 -*-

"""
# File       : alarm.py
# Time       ：2023/10/15 16:06
# Author     ：author name
# version    ：python 3.10
# Description：告警类
"""
from public.base_model import Base, db


class Alarm(Base):
    __tablename__ = 'alarm'

    process_name = db.Column(db.String(64), nullable=False, comment='流程名称')
    process_id = db.Column(db.String(64), nullable=False, comment='流程ID')
    process_instance_id = db.Column(db.String(64), nullable=False, comment='流程实例ID')
    task_id = db.Column(db.String(255), nullable=False, comment='任务ID')
    task_name = db.Column(db.String(64), nullable=False, comment='任务名称')
    error_info = db.Column(db.Text, comment='错误信息')
    people_confirm = db.Column(db.Boolean, comment='是否确认')
